﻿using FileManager.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace FileManager.DAL
{
    public class InstitutionRepository
    {
        public IEnumerable<Institution> Get(int skip,int take)
        {
            using(var db = new FileManagerEntities())
            {
                return db.Institution.OrderBy(i => i.Id).Skip(skip).Take(take).ToList();
            }
        }


    }
}